package com.as.dao;

import java.util.List;

import com.as.base.BaseDaoImpl;
import com.as.entity.Test;

public class TestDaoImpl extends BaseDaoImpl<Test> implements TestDao{

	@Override
	public List<Test> getOnePersonTest(String userid) {
		if(userid == null){
			return null;
		}
	    String sql = "FROM Test t WHERE t.userid =? order by t.testid DESC";
		return getSession().createQuery(sql)
				.setParameter(0, userid)
				.list();
	}

}
